#include "Blocks/GunpowderKegBlock.h"

namespace PocketSurvival
{

    GunpowderKegBlock::GunpowderKegBlock(GunpowderKegType type) : gunpowderKegType(type)
    {
        addInheritance(this);
    }

    const std::vector<BoundingBox> &GunpowderKegBlock::getCustomCollisionBoxes(int32_t value)
    {
        if(gunpowderKegType == GunpowderKegType::Small)
        {
            return BlockConstans::smallGunpowderKegCollisionBoxes;
        }
        else if(gunpowderKegType == GunpowderKegType::Medium)
        {
            return BlockConstans::mediumGunpowderKegCollisionBoxes;
        }
        return BlockConstans::largeGunpowderKegCollisionBoxes;
    }

} // namespace PocketSurvival
